﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <script src="~/Scripts/jquery-1.10.2.js"></script>
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
    <div>
        <h1 style="text-align:center;">医院信息添加管理</h1>
        <form action="/HospitalInfo/HospAdd" enctype="multipart/form-data" method="post">
            <table class="table table-hover">
                <tr>
                    <td style="width:150px">医院名称:</td>
                    <td><input name="Hosp_Name" type="text" class="form-control" /></td>
                </tr>
                <tr>
                    <td>医院简介:</td>
                    <td><input name="Hosp_Message" type="text" class="form-control" /></td>
                </tr>
                <tr>
                    <td>医院电话:</td>
                    <td><input name="Hosp_Phone" type="text" class="form-control" /></td>
                </tr>
                <tr>
                    <td>医院地址:</td>
                    <td><input name="Hosp_Address" type="text" class="form-control" /></td>
                </tr>
                <tr>
                    <td>医院图片:</td>
                    <td><input name="file1" type="file" class="form-control" /></td>
                </tr>
                <tr>
                    <td>医院科室:</td>
                    <td>@foreach (var item in ViewBag.Office)
            {
                        <input name="Check" type="checkbox" value="@item.Office_ID" class="checkbox-inline" /><span>@item.Office_Name</span>
                    }</td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="添加" class="btn btn-primary"/>&nbsp;&nbsp;&nbsp;&nbsp;<input id="Button1" type="button" value="返回"  class="btn btn-primary"/></td>
                </tr>
            </table>
        </form> 
    </div>
    <script>
        $("#Button1").click(function () {
            location.href = "/HospitalInfo/HospShow";
        })
    </script>
</body>
</html>
